<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2018/11/1
  Time: 16:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="../bootstrap/js/jquery.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
    <title>Title</title>
    <style>
        #back{
            float: right;
        }
        button{
            margin-top: 20px;
        }
        h3{
            text-align: center;
        }
    </style>
</head>
<body>
<h3>添加商品</h3>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-4 column">
        </div>
        <div class="col-md-4 column">
            <form role="form" action="${root}/append" method="post">
                <div class="form-group">
                    <label for="pname">商品名称</label><input type="text" class="form-control" id="pname" name="pname"/>
                </div>
                <div class="form-group">
                    <label for="pmarkprice">商场价格</label><input type="text" class="form-control" id="pmarkprice" name="market_price"/>
                </div>
                <div class="form-group">
                    <label for="pshopprice">市场价格</label><input type="text" class="form-control" id="pshopprice" name="shop_price"/>
                </div>
                <div class="form-group">
                    <label for="pdesc">商品描述</label><input type="text" class="form-control" id="pdesc" name="pdesc"/>
                </div>
                <div class="form-group">
                    <label for="pimage">商品图片</label><input type="file" id="pimage" name="image"/>
                </div>
                <div class="form-group">
                    <label for="pishot">商品热销</label>
                    <select id="pishot" name="is_hot">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
                <tr>
                    <td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
                        二级分类：
                    </td>
                    <td class="ta_01" bgColor="#ffffff" colspan="3">
                        <select name="csid">
                            <c:forEach var="c" items="${list}" >
                                <option value="${c.csid}">${c.csname}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <br>
                <a href="${root}/main.jsp">
                    <button type="button" class="btn btn-default" id="back">返回</button>
                </a>
                <button type="submit" class="btn btn-default btn-primary" id="sub">提交</button>
            </form>
        </div>
        <div class="col-md-4 column">
        </div>
    </div>
</div>
</body>
</html>
